package com.itheima.sc.api.sms;

import com.itheima.sc.pojo.sms.HomeAdvertise;
import com.itheima.sc.vo.PageResult;

import java.util.Date;
import java.util.List;

public interface SmsHomeAdvertiseApi {

    /**
     * 添加广告
     * @param advertise
     */
    void addAdvertise(HomeAdvertise advertise);

    /**
     * 单个或批量删除广告
     * @param ids
     */
    void deleteAdvertise(List<Long> ids);

    //分页并根据条件查询广告列表
    PageResult selectAdvertiseList(Integer page, Integer pageSize, Integer type, String name, String endTime);

    //修改广告的状态
    void updateAdvertise(HomeAdvertise advertise);

    //查询广告详情
    HomeAdvertise selectAdvertiseById(Long id);
}
